Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix broken exit code checks in rpm-ostree install #76

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Feb 3, 2025

see commits, fixes the missing exit code checks in the rpm-ostree install of podman that caused #75 to go unnoticed

None

Copy link

openshift-ci bot commented Feb 3, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Luap99
Copy link
Member Author

Luap99 commented Feb 3, 2025

This is correctly failing on the 5.4 PR with that so it seems to work properly now:
https://cirrus-ci.com/task/5399060061880320?logs=build#L139

We can check the rpm-ostree image URL always as this is set by the build
process. What we cannot check is the real podman version in the image
right now as this depens on the moving copr target.

Signed-off-by: Paul Holzinger <[email protected]>
The install commands could have failed without failing the build due to
us not checking the exit codes.

Signed-off-by: Paul Holzinger <[email protected]>
From the docs[1]: In a container build, it’s a current best practice
to invoke this at the end of each RUN instruction.

Thus we should add it here, I did not add it for other RUN's as those
are simple file operations that should not effect other things really.

[1] https://coreos.github.io/rpm-ostree/container/#using-ostree-container-commit

Signed-off-by: Paul Holzinger <[email protected]>
@baude
Copy link
Member

baude commented Feb 3, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 3, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 9a7f3f5 into containers:main Feb 3, 2025
8 checks passed
@Luap99 Luap99 deleted the version branch February 3, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants